﻿#ifndef CAMERAFINDER_H
#define CAMERAFINDER_H

#include <QObject>
#include "CameraLoader.h"

namespace Qly {
class CAMERA_EXPORT CameraFinder
{
public:
    explicit CameraFinder(QString path, QObject *parent = nullptr);
    ~CameraFinder();
    IndustryCamera * defaultCamera(QSet<CameraType> types, QObject *parent = 0);
    QStringList allCameraName(QSet<Qly::CameraType> types);
    IndustryCamera * findCameraByName(QString rawName, QObject * parent);
    bool release(IndustryCamera * camera);
private:
    QList<CameraLoader *> m_loaders;
};


}


#endif // CAMERAFINDER_H
